package Creational_design_pattern.Prototype_Pattern.Deep_Clone;

public class Client {
    public static void main(String[] args) {
        Email email,copyemail = null;
        email = new Email();
        try {
            copyemail = (Email) email.deepClone();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("email == copyemail?");
        System.out.println(email == copyemail);
        System.out.println("email.getAttachment() == copyemail.getAttachment()?");
        System.out.println(email.getAttachment() == copyemail.getAttachment());

    }
}
